
<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<html>
<head>
<title>新建客户表单</title>
<link rel="shortcut icon" href="easyui/css/images/favicon.ico" />
<link rel="stylesheet" href="css/flipclock.css">
<link href="css/CalcSS3.css" rel="stylesheet" type="text/css" />
<link href="css/index.css" rel="stylesheet" type="text/css" />
<link href="easyui/css/easyui.css" rel="stylesheet" type="text/css">
<link href="easyui/css/easyui_animation.css" rel="stylesheet"
	type="text/css">
<link href="easyui/css/easyui_plus.css" rel="stylesheet" type="text/css">
<link href="easyui/css/insdep_theme_default.css" rel="stylesheet"
	type="text/css">
<link href="easyui/css/icon.css" rel="stylesheet" type="text/css">
<link href="easyui/css/font-awesome-4.7.0/css/font-awesome.min.css"
	rel="stylesheet" type="text/css">
</head>
<body>
	<script type="text/javascript">
		$(function() {
			 //选择客户刷新
	        $('#add-after-sale-server-form-client-combobox').combobox({
	        	onChange:function(){
	        		var value = $('#add-after-sale-server-form-contact-combobox').combobox('getValue');
	        		if(value == null || value ==""){
	        			$('#add-after-sale-server-form-contact-combobox').combobox({
	        				url:'memorial-find-contact-id-name-by-cid',
	        				method:'post',
	        				queryParams : {
	        					cid:$('#add-after-sale-server-form-client-combobox').combobox('getValue')
	        				}
	        			})
	        		}
	        	}
	        })
	        
	        $('#add-after-sale-server-form-contact-combobox').combobox({
	        	onChange:function(){
	        		var clientValue = $('#add-after-sale-server-form-client-combobox').combobox('getValue');
	        		if(clientValue == null || clientValue ==""){
	        			$('#add-after-sale-server-form-client-combobox').combobox({
	        				url:'memorial-find-clientInfo-by-contactid',
	        				method:'post',
	        				queryParams : {
	        					contactid:$('#add-after-sale-server-form-contact-combobox').combobox('getValue') == null?-1:$('#add-after-sale-server-form-contact-combobox').combobox('getValue')
	        				}
	        			});
	        		}
	        	}
	        });
		})
	</script>
	<script type="text/javascript" src="js/client/validator.js"></script>
	<div class="form-div">
		<form id="add-after-sale-server-form"  method="post">
			<div class="dd">
				<input name="theme" class="easyui-textbox"
					data-options="label:'主题：',required:true,width:650">
			</div>
			
	        <div class="dd">
	       		<input id="add-after-sale-server-form-client-combobox" class="easyui-combobox"  data-options="label:'对应客户：',required:true,width:650,
	       			valueField:'cid',textField:'cname',url:'find-all-client', limitToList:true" /> 
	        </div>
	        
	        <div class="dd">
	        	<label>服务类型：</label>
	        	<input type="radio" name="type"	value="答疑"><label>答疑</label>
	        	<input type="radio" name="type"	value="故障排除"><label>故障排除</label>
	        	<input type="radio" name="type"	value="培训"><label>培训</label>
	        	<input type="radio" name="type"	value="升级"><label>升级</label>
	        	<input type="radio" name="type"	value="其他"><label>其他</label>
	        </div>
	        
	        <div class="dd">
	        	<label>服务方式：</label>
	        	<input type="radio" name="way"	value="电话"><label>电话</label>
	        	<input type="radio" name="way"	value="传真"><label>传真</label>
	        	<input type="radio" name="way"	value="邮寄"><label>邮寄</label>
	        	<input type="radio" name="way"	value="上门"><label>上门</label>
	        	<input type="radio" name="way"	value="其他"><label>其他</label>
	        </div>
	        
	        <div class="dd">
	       		<input  class="easyui-datetimebox" name="startTime" data-options="label:'开始时间：',width:650" /> 
	        </div>
	        
	         <div class="dd">
	       		<select name="spendTime"  class="easyui-combobox" data-options="label:'花费时间：',width:320,panelWidth:220, limitToList:true" >
	            	<option value="">未选</option>  
				    <option value="1小时">1小时</option>   
				    <option value="2小时">2小时</option>   
				    <option value="3小时">3小时</option>   
				    <option value="半个工作日">半个工作日</option>   
				    <option value="1个工作日">1个工作日</option>   
				    <option value="2个工作日">2个工作日</option>   
				    <option value="2个工作日以上">2个工作日以上</option>  
				</select>&nbsp;&nbsp;&nbsp;
				<input name="clientId" id="add-after-sale-server-form-contact-combobox"
					class="easyui-combobox" name="contanctid "
					data-options="label:'联系人',required:true,width:320,
        		valueField:'contactid',textField:'contactName',url:'memorial-find-contact-id-name',method:'post'">
				
	        </div>
	        
	         <div class="dd">
	        	<label>状态：</label>
	        	<input type="radio" name="state"	value=""><label>无需处理</label>
	        	<input type="radio" name="state"	value="未处理"><label>未处理</label>
	        	<input type="radio" name="state"	value="处理中"><label>处理中</label>
	        	<input type="radio" name="state"	value="处理完成"><label>处理完成</label>
	        </div>
	        
	        <div class="dd">
				<input name="exertId" class="easyui-combobox" data-options="label:'执行人：',width:320,
				valueField:'uId',textField:'uname',url:'care-query-all-user'" >
	        </div>
	        
	        <div class="dd">
	            <input name="context"   class="easyui-textbox" data-options="label:'服务内容：',width:650,height:100,
	            multiline:true">
	        </div>
	        
	        <div class="dd">
	            <input name="feedback"   class="easyui-textbox" data-options="label:'客户反馈：',width:650,height:100,
	            multiline:true">
	        </div>
	        
	        <div class="dd">
	            <input name="remarks"   class="easyui-textbox" data-options="label:'备注：',width:650,height:100,
	            multiline:true">
	        </div>
		</form>
	</div>
</body>
</html>
